package com.example.demo.entity;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor//为类自动生成一个无参构造函数
public class Address {
    @NotBlank
    @Size(min = 3, message="城市长度至少为3")
    private String city;
}
